import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from '@/router'//页面跳转
import {createPinia} from 'pinia'//jwt存储到token
import {createPersistedState} from 'pinia-persistedstate-plugin'//jwt持久化存储(刷新不消失),与token.js配合使用

const app = createApp(App);
const pinia = createPinia();
const persist = createPersistedState();
pinia.use(persist)
app.use(pinia);
app.use(router)//使用router
app.use(ElementPlus)//使用elementplus
app.mount('#app')//钩子函数 页面前后调用
